package com.flyco.modules.oms.entity;

import java.io.Serializable;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import com.flyco.poi.excel.annotation.Excel;

/**
 * @Description: 收发货地址管理
 * @Author: flyco
 * @Date:   2020-01-02
 * @Version: V1.0
 */
@Data
@TableName("oms_company_address")
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="oms_company_address对象", description="收发货地址管理")
public class OmsCompanyAddress {
    
	/**id*/
	@TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "id")
	private Long id;
	/**地址名称*/
	@Excel(name = "地址名称", width = 15)
    @ApiModelProperty(value = "地址名称")
	private String addressName;
	/**默认发货地址：0->否；1->是*/
	@Excel(name = "默认发货地址：0->否；1->是", width = 15)
    @ApiModelProperty(value = "默认发货地址：0->否；1->是")
	private Integer sendStatus;
	/**是否默认收货地址：0->否；1->是*/
	@Excel(name = "是否默认收货地址：0->否；1->是", width = 15)
    @ApiModelProperty(value = "是否默认收货地址：0->否；1->是")
	private Integer receiveStatus;
	/**收发货人姓名*/
	@Excel(name = "收发货人姓名", width = 15)
    @ApiModelProperty(value = "收发货人姓名")
	private String name;
	/**收货人电话*/
	@Excel(name = "收货人电话", width = 15)
    @ApiModelProperty(value = "收货人电话")
	private String phone;
	/**省/直辖市*/
	@Excel(name = "省/直辖市", width = 15)
    @ApiModelProperty(value = "省/直辖市")
	private String province;
	/**市*/
	@Excel(name = "市", width = 15)
    @ApiModelProperty(value = "市")
	private String city;
	/**区*/
	@Excel(name = "区", width = 15)
    @ApiModelProperty(value = "区")
	private String region;
	/**详细地址*/
	@Excel(name = "详细地址", width = 15)
    @ApiModelProperty(value = "详细地址")
	private String detailAddress;
	/**省份编号*/
	@Excel(name = "省份编号", width = 15)
    @ApiModelProperty(value = "省份编号")
	private String provinceCode;
	/**城市编号*/
	@Excel(name = "城市编号", width = 15)
    @ApiModelProperty(value = "城市编号")
	private String cityCode;
	/**区编号*/
	@Excel(name = "区编号", width = 15)
    @ApiModelProperty(value = "区编号")
	private String areaCode;
	/**创建人*/
	@Excel(name = "创建人", width = 15)
	@ApiModelProperty(value = "创建人")
	private String createBy;
	/**创建时间*/
	@Excel(name = "创建时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	@ApiModelProperty(value = "创建时间")
	private Date createTime;
	/**更新人*/
	@Excel(name = "更新人", width = 15)
	@ApiModelProperty(value = "更新人")
	private String updateBy;
	/**更新时间*/
	@Excel(name = "更新时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	@ApiModelProperty(value = "更新时间")
	private Date updateTime;
}
